package com.egrid.point.bury.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.annotation.Generated;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * ConfigProperties.java
 * Created at 2019-12-27
 * Created by Royal Warmer
 * Copyright (C) 2018 SAIC VOLKSWAGEN, All rights reserved.
 */
@Data
@Entity
@Table(name = "TT_CONFIG_PROPERTIES")
@ApiModel("配置脚本参数")
public class ConfigProperties implements Serializable {

    @Id
    @GenericGenerator(name="idGenerator", strategy="uuid") //这个是hibernate的注解
    @GeneratedValue(generator="idGenerator")
    private String id;

    @ApiModelProperty(value = "合并上报量")
    private Integer submitCombineCount;

    @ApiModelProperty(value = "上传的地址")
    private String submitUrl;

    @ApiModelProperty(value = "token位置,cookie/localstorage/sessionstorage 三种")
    private String tokenPosition;

    @ApiModelProperty(value = "token的键值名")
    private String tokenKey;

    @ApiModelProperty(value = "点击事件上传是否打开.true:开启,false:关闭")
    private String clickOff;

    @ApiModelProperty(value = "页面进入上传是否打开.true:开启,false:关闭")
    private String upPage;

    @ApiModelProperty(value = "应用类型")
    private String appType;

    @JsonIgnore
    private Date createDate;

}
